<?php if(!defined('HDPHP_PATH'))exit;C('SHOW_NOTICE',FALSE);?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
    <meta http-equiv="Content-Type" content="text/html;charset=UTF-8"/>
    <title>货品管理</title>
    <!-- bootstrap和hdjs引入 -->
    <link rel="stylesheet" href="http://127.0.01/jmshop/Static/bootstrap/css/bootstrap.min.css" />
    <script type="text/javascript" src="http://127.0.01/jmshop/Static/hdjs/hdjs.min.js"></script>
    <link rel="stylesheet" href="http://127.0.01/jmshop/Static/hdjs/hdjs.css" />
    <style type="text/css">
        .plus_minus{
            width: 20px;
        }
    </style>
    
</head>
<body>
<div class="wrap">
    <table class="hd-table hd-table-list">
        <thead>
        <tr>
            <td width="30"></td>
            <td>id</td>
            <td>商品名称</td>
            <td>价格</td>
            <td>库存</td>
            <td>点击次数</td>
            <td>上传时间</td>
            <td width="200">操作</td>
        </tr>
        </thead>
        <?php foreach ($goodsData as $k=>$v){?>
        <tbody>
                <td width="30"></td>
                <td><?php echo $v['gid'];?></td>
                <td><?php echo $v['gname'];?></td>
                <td>
                    市场价:<del><?php echo $v['shopprice'];?></del><br/>
                    商城价:<span><?php echo $v['markprice'];?></span>
                </td>
                <td><?php echo $v['stock'];?></td>
                <td><?php echo $v['click'];?></td>
                <td><?php echo date('Y_m_d H:i:s',$v['uptime']);?></td>
                <td width="200">
                    <a href="<?php echo U('Admin/ShopGoodsList/index',array('gid'=>$v['gid']));?>" class="hd-btn hd-btn-primary hd-btn-sm">货品列表</a>
                    <a href="" class="hd-btn hd-btn-danger hd-btn-sm">修改</a>
                    <a href="<?php echo U('Admin/ShopGoods/del',array('gid'=>$v['gid']));?>" class="hd-btn hd-btn-success hd-btn-sm">删除</a>
                </td>
        </tbody>
        <?php }?>
    </table>
    <div class="page_hdjob">
        
    </div>
</div>

</body>
</html>


